<h1>User</h1>

<table class="listing" cellpadding="0" cellspacing="0">
	<tr>
		<?php 
		foreach($controller->user->attributes as $attribute)
		{
			echo '<th>'.$attribute[0].'</th>';
		}
		
		?>
		<th>action</th>
	</tr>
	<? foreach($controller->users as $user){?>
	<tr>
		<? foreach($controller->user->attributes as $attribute){?>
		<td><?echo $user->$attribute[0]?></td>
		<? }?>
		<td><a href="./index.php?controller=user&action=delete&id=<?
		echo $user->id; ?>">delete</a> <a
			href="./index.php?controller=user&action=show&id=<? echo
		$user->id; ?>">show</a> <a
			href="./index.php?controller=user&action=edit&id=<? echo
		$user->id; ?>">edit</a></td>
	</tr>
	<?}?>
</table>